package com.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 定时任务记录
 * @Date:   2020-10-16
 * @Version: V1.0
 */
@Data
public class QuartzLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**Bean名称*/
    @ApiModelProperty(value = "Bean名称")
    private String baenName;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**cron表达式*/
    @ApiModelProperty(value = "cron表达式")
    private String cronExpression;
	/**异常详细*/
    @ApiModelProperty(value = "异常详细")
    private String exceptionDetail;
	/**状态*/
    @ApiModelProperty(value = "状态")
    private Integer isSuccess;
	/**任务名称*/
    @ApiModelProperty(value = "任务名称")
    private String jobName;
	/**方法名称*/
    @ApiModelProperty(value = "方法名称")
    private String methodName;
	/**参数*/
    @ApiModelProperty(value = "参数")
    private String params;
	/**耗时（毫秒）*/
    @ApiModelProperty(value = "耗时（毫秒）")
    private Long time;
}
